<?
//inculde即可以使用data数据。本页所有的data数据，倾在controller都处理好
include_once("../../../../../config.php");
include_once("/../../../../common/module/checkA.php");
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <?php include ROOT_PATH_.'/controller/common/module/head.php'; ?>
    <!-- 日期选择器 -->
    <?php include_once(TASK_PATH_.'/mod-date.php'); ?>
    <!--kindeditor编辑器-->
    <?php include_once(TASK_PATH_.'/mod-nkeditor.php'); ?>
</head>
<style>
    html{
        background: #fff;
    }
    #content{
        margin: 0;
    }
    .detail-box{
        
        margin: 0px 0 70px 0;
    }
    .detail-box .function{
        margin-left: 0;
    }
</style>
<body>
<div id="content">
    <?php $page_title='修改任务模版';?>
    <?php include ROOT_PATH_.'/controller/common/module/mod-page-title.php'; ?>
    <?php
    $info = select_one_line_all_items($table_Prefix."task_themes",' nid = '.$_REQUEST['nid']);
    ?>
    <form id="add-task-form" method="post"
          action="../task-themes-edit-function.php?sys_part=task"
          enctype="multipart/form-data" class="layui-form detail-box">

        <div class="layui-form-item">
            <label class="layui-form-label">模版标题</label>
            <div class="layui-input-block">
                <input type="text" name="ai_name" lay-verify="required" placeholder="请输入任务模版标题" autocomplete="off" class="layui-input" value="<?php echo $info['name']?>">
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">备注</label>
            <div class="layui-input-block">
                <input type="text" name="ai_remark" placeholder="备注" autocomplete="off" class="layui-input" value="<?php echo $info['remark']?>">
            </div>
        </div>

        <input name="nid" type="hidden" value="<? echo $info['nid'] ?>"/>
        <input name="sys_part" type="hidden" value="<? echo $system_part ?>"/>
        <input name="nowpageid" type="hidden" value="<? echo $_REQUEST['nowpageid'] ?>"/>
        <input name="sortby" type="hidden" value="<? echo $_REQUEST['sortby'] ?>"/>

        <div class="function">
            <button class="layui-btn" lay-submit lay-filter="formTaskBtn" type="buttom" id="taskBtn">立即提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </form>



</div>
</html>